package com.stylefeng.guns.modular.system.service.impl;

import com.stylefeng.guns.modular.system.model.Setup;
import com.stylefeng.guns.modular.system.dao.SetupMapper;
import com.stylefeng.guns.modular.system.service.ISetupService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 设置表 服务实现类
 * </p>
 *
 * @author kutty
 * @since 2018-09-25
 */
@Service
public class SetupServiceImpl extends ServiceImpl<SetupMapper, Setup> implements ISetupService {

    @Resource
    private SetupMapper setupMapper;

    /**
     * 修改这个帐号的状态，让这个帐号不能使用
     */
    public int updisUse(@Param("account") String account){
        return setupMapper.updisUse(account);
    }

    public Setup selectByAccount(@Param("account") String account){
        return setupMapper.selectByAccount(account);
    }

    public Setup selectByAppid(@Param("appid")String appid){
        return setupMapper.selectByAppid(appid);
    }

}
